#ifndef _ACTION_LOGIN_H
#define _ACTION_LOGIN_H

typedef enum {
    ACTION_LOGINED_SUCCESSFULLY,
    ACTION_LOGINED_FAILED,
    ACTION_FETCHING_FAILED
} action_login_status;

typedef struct {
    action_login_status status;
    const char* message;
    const char* user_index;
} action_login_result;

action_login_result action_login(
    const char* bind_interface,
    const char* portal_host,
    const char* portal_search,
    const char* username,
    const char* encrypted_password
);

#endif
